package com.website.dayouziblog.model.DTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * 文章实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
public class ArticleDTO implements Serializable {
    private static final long serialVersionUID = -937796536081334752L;

    @ApiModelProperty(value = "主键id")
    private int id;

    @ApiModelProperty(value = "用户id")
    private int userId;

    @ApiModelProperty(value = "文章title")
    private String title;

    @ApiModelProperty(value = "文章正文")
    private String content;

    @ApiModelProperty(value = "发布时间")
    private String pubtime;

    @ApiModelProperty(value = "更新时间")
    private String lastUpdateTime;
}
